import { ref, onMounted } from "vue";

export default function () {
    let sum = ref(1)
    function incrementSum() {
        sum.value += 1
    }
    function decrementSum() {
        sum.value -=1
    }
    onMounted(()=>{
        incrementSum()
    })
    

    return { sum , incrementSum,decrementSum}

}